/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.OneToOne;

/**
 *
 * @author wei
 */
@Entity(name="UserSetting")
public class UserSettingEntity extends DataObjectEntity implements Serializable {
    
    private boolean forwardToEmail = true;
    
    @OneToOne
    private SystemUserEntity systemUser;

    public UserSettingEntity() {
        super();
    }

    public boolean isForwardToEmail() {
        return forwardToEmail;
    }

    public void setForwardToEmail(boolean forwardToEmail) {
        this.forwardToEmail = forwardToEmail;
    }

    public SystemUserEntity getSystemUser() {
        return systemUser;
    }

    public void setSystemUser(SystemUserEntity systemUser) {
        this.systemUser = systemUser;
    }

    @Override
    public String childToString() {
        return "UserSettingEntity{" + "forwardToEmail=" + forwardToEmail + ", systemUser=" + systemUser + '}';
    }

}
